import threading
import tiem



num = 100
def test1():
    global num
    num+=1

def test2():
    print(num)

def main():
    t1 = threading.Thread(target=test1)
    t2 = threading.Thread(target=test2)
    t1.start()
    time.sleep(1)  #保证test1先执行
    t2.start()
    

if __name__ == '__main__':
    main()
